﻿using System.ComponentModel.DataAnnotations;
using System;
namespace XSTDZ.ERP.Application.DataContracts
{
   public  class DeptDto
    {
       public Guid Id { get; set; }
       [Display(Name = "部门编码：")]
       [Required(ErrorMessage = "部门编码必填！")]
        public string Code { get; set; }
       [Display(Name = "部门名称：")]
       [Required(ErrorMessage = "部门名称必填！")]
       public string Name { get; set; }
        [Display(Name="部门描述：")]
        public string Description { get; set; }
        [Display(Name = "排序数字：")]
        public short Order { get; set; }
        public System.Guid? ParentId { get; set; }
        public System.Guid OrgId { get; set; }
        public short? Level { get; set; }
        [Display(Name = "是否叶子结点：")]
        public bool IsLeaf { get; set; }
    }
}
